home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1996 #15
/
Monster Media Number 15 (Monster Media)(July 1996).ISO
/
arc
/
archview.zip
/
ARCHVIEW.BAT
next >
Wrap
DOS Batch File
|
1996-04-06
|
2KB
|
104 lines
@echo off
testfile %1 arc arj dwc hap hpk huf hyp ice lzh lzs out pak rar sqz uc2 zip zoo ??_
if errorlevel == 98 goto error
if errorlevel == 18 goto expand
if errorlevel == 17 goto zoo
if errorlevel == 16 goto zip
if errorlevel == 15 goto uc2
if errorlevel == 14 goto sqz
if errorlevel == 13 goto rar
if errorlevel == 12 goto pak
if errorlevel == 11 goto out
if errorlevel == 10 goto lzs
if errorlevel == 9 goto lzh
if errorlevel == 8 goto ice
if errorlevel == 7 goto hyp
if errorlevel == 6 goto huf
if errorlevel == 5 goto hpk
if errorlevel == 4 goto hap
if errorlevel == 3 goto dwc
if errorlevel == 2 goto arj
if errorlevel == 1 goto arc
goto end
:error
echo Sorry, this file is not viewable.
goto end
:arc
arc v %1 /l24
goto end
:arj
arj v %1 -jp
goto end
:dwc
dwc v %1 |MORE
goto end
:hap
hap3 l %1 |MORE
goto end
:hpk
hpacka V %1 |MORE
goto end
:huf
echo Files of this format cannot be viewed; they must be expanded.
goto end
:hyp
hyper -v %1 |MORE
goto end
:ice
freeze
goto end
:lzh
lha l %1 |MORE
goto end
:lzs
larc l %1 |MORE
goto end
:out
tar -tv |MORE
;will look for archive named "tar.out" in current directory
goto end
:pak
pak L /sn /MORE %1
goto end
:rar
rar v %1 |MORE
goto end
:sqz
sqz V %1 |MORE
:uc2
uc V %1 |MORE
goto end
:zip
pkzip %1 -vnmp
goto end
:zoo
zoo V AC %1
goto end
:expand
echo Files of this format cannot be viewed; they must be expanded.
goto end
:end
echo Archview operation complete.
pause